package com.ren.service.sms.client.fallback;

import com.ren.service.sms.client.CoreUserInfoFeignClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author RenGaoshuai
 * @date 2023/8/9 14:21
 * @description
 */

@Service
@Slf4j
public class CoreUserInfoClientFallback implements CoreUserInfoFeignClient {
    @Override
    public boolean checkMobile(String mobile) {
        log.error("远程调用失败，服务熔断");
        //返回true，允许发送短信
        return true;
    }
}
